import base from '@/api/base'; // 导入接口域名列表
import axios from '@/api/http.js'; // 导入http中创建的axios实例

// 获取近7天告警数量
export function getServenTodayInfo() {
  return axios({
    url: `${base}/alarm/getServenTodayInfo`,
    method: 'GET'
  });
}

// 获取近30天告警数量
export function getThirtyTodayInfo() {
  return axios({
    url: `${base}/alarm/getThirtyTodayInfo`,
    method: 'GET'
  });
}

// 获取今日告警数量和区域
export function getTodayAreaInfo() {
  return axios({
    url: `${base}/alarm/getTodayAreaInfo`,
    method: 'GET'
  });
}

// 获取今日告警分析
export function getTodayInfo() {
  return axios({
    url: `${base}/alarm/getTodayInfo`,
    method: 'GET'
  });
}

// 获取在线率以及井下视频区域统计信息
export function getUnderInfo() {
  return axios({
    url: `${base}/monitor/getUnderInfo`,
    method: 'GET'
  });
}

// 视频列表
export function queryCameraList(data) {
  return axios({
    url: `${base}/monitor/cameraList`,
    method: 'POST',
    data
  });
}

// 获取视频流地址
export function queryCameraUrl(data) {
  return axios({
    url: `${base}/monitor/getCameraUrl`,
    method: 'POST',
    data
  });
}

